<!doctype html>
<html>
<head>
    <#include "include/common.header.ftl" >
    <script type="text/javascript" src="/js/aunt_message.js"></script>
    <script type="text/javascript">
      function myCheck() {
		if($("#serviceType").combobox("getValue")==""||$("#honeLocation").combobox("getValue")==""||$("#head").val()==""||$("#name").val()==""||$("#idcard").val()==""||$("#phoneNumber").val()==""||$("#pwd").val()==""||$("#address").val()==""||$("#zhengMian1").val()==""||$("#beiMian1").val()==""||$("#age").val()==""){
			alert("当前表单不能有空项");
			return false;
		 }
        return true;
        
      }
     
    </script>
</head>
<body style="margin: 1px">

<table id="dg" title="用户信息" class="easyui-datagrid"
       fitColumns="true" pagination="true" rownumbers="true"
       url="/demo01/auntPage?state=22&limit=10&sort=phoneNumber" fit="true" toolbar="#tb">
    <thead>
    <tr>
        <th field="cb" checkbox="true" align="center"></th>
        <th field="phoneNumber" width="50" align="center">手机号</th>
        <th field="age" width="50" align="center" >年龄</th>
        <th field="name" width="50" align="center" >名字</th>
        <th field="serviceTimes" width="50" align="center">服务次数</th>
        <th field="idcard" width="50" align="center" >身份证</th>
        <th field="honeLocation" width="50" align="center" >归属地</th>
        <th field="stage" width="50" align="center" >上班状态</th>
    </tr>
    </thead>
</table>
<div id="tb">
    <div>
       <!-- <a href="javascript:openSaleChanceAddDialog()" class="easyui-linkbutton" iconCls="icon-add" plain="true">创建</a>-->
        <a href="javascript:openSaleChanceModifyDialog()" class="easyui-linkbutton" iconCls="icon-edit" plain="true">详情/修改</a>
        <a href="javascript:openChangeShangban()" class="easyui-linkbutton" iconCls="icon-edit" plain="true">转换上班状态</a>
       <!--  <a href="javascript:deleteSaleChance()" class="easyui-linkbutton" iconCls="icon-remove" plain="true">删除</a>-->
    <form name="form1" action="/controll/addAunt?" method="post" onsubmit="return myCheck()" enctype="multipart/form-data">
      阿姨头像上传:<input type="file" name="head" id="head">
            身份证正面上传:<input type="file" name="zhengMian1" id="zhengMian1">
               身份证背面面上传:<input type="file" name="beiMian1" id="beiMian1"><br> 
           姓&nbsp;名 :<input type="text" name="name" id="name">&nbsp;&nbsp;&nbsp;身份证号: <input type="text" name="idcard" id="idcard">&nbsp;&nbsp;&nbsp;服务类型: <input class="easyui-combobox" 
							name="serviceType"
							id="serviceType"
							url="/wode/sType" 
							valueField="CODE" 
							textField="NAME" 
							  multiple="true"
							panelHeight="auto"   editable="false"  /><br>
               手&nbsp;机 :<input type="text" name="phoneNumber" id="phoneNumber">&nbsp;&nbsp;&nbsp;密&nbsp;码 : <input type="text" name="pwd" id="pwd">&nbsp;&nbsp;&nbsp;归属地址:  <input class="easyui-combobox" 
							name="honeLocation"
							id="honeLocation"
							url="/wode/loca" 
							valueField="CODE" 
							textField="NAME" 
							panelHeight="auto"   editable="false"  /> <br>
            年&nbsp;龄: <input type="text" name="age" id="age">&nbsp;&nbsp;&nbsp;家庭住址: <input type="text" name="address" id="address"> &nbsp;&nbsp;&nbsp;<input type="submit" value="注册阿姨">
        </form>
    </div>
    <div>
        &nbsp;手机号：&nbsp;<input type="text" id="s_phoneNumber" size="20" onkeydown="if(event.keyCode==13) searchSaleChance()"/>
        &nbsp;名字：&nbsp;<input type="text" id="s_orderNumber" size="20" onkeydown="if(event.keyCode==13) searchSaleChance()"/>
        &nbsp;年龄：&nbsp;<input type="text" id="s_servicePersonal" size="20" onkeydown="if(event.keyCode==13) searchSaleChance()"/>
        &nbsp;身份证：&nbsp;<input type="text" id="s_orderState" size="20" onkeydown="if(event.keyCode==13) searchSaleChance()"/>
        
    
        <a href="javascript:searchSaleChance()" class="easyui-linkbutton" iconCls="icon-search" plain="true">搜索</a>
    </div>
</div>

<div id="dlg" class="easyui-dialog" style="width:700px;height:450px;padding: 10px 20px"
     closed="true" buttons="#dlg-buttons">
        <input type="text" id="tag" name="tag" value="0"  hidden="true"/>

    <form id="fm" method="post">
        <table cellspacing="8px">
            
            <tr>
                <td>手机号：</td>
                <td><input type="text" id="phoneNumber" name="phoneNumber" class="easyui-validatebox" required="true"/></td>
                <td>头像：</td>
                <td><input type="text" id="headProtrait" name="headProtrait" class="easyui-validatebox" required="true"><image id="myimg" src="" width="15px" height="12px"></input></td>
            </tr>
            <tr>
                <td>身份证正面：</td>
                <td><input type="text" id="zhengMian" name="zhengMian" class="easyui-validatebox" required="true"><image id="zhengMianImg" src="" width="15px" height="12px"></input></td>
         	    <td>身份证背面：</td>
                <td><input type="text" id="beiMian" name="beiMian" class="easyui-validatebox" required="true"><image id="beiMianImg" src="" width="15px" height="12px"></input></td>
            </tr>
             <tr>
                <td>年龄：</td>
                <td><input type="text" id="age" name="age" class="easyui-validatebox" required="true"/></td>
                <td>名字：</td>
                <td><input type="text" id="name" name="name" class="easyui-validatebox" required="true"/></td>
            </tr>
             <tr>
                <td>身份证：</td>
                <td><input type="text" id="idcard" name="idcard" class="easyui-validatebox" required="true"/></td>
                <td>服务次数：</td>
                <td><input type="text" id="serviceTimes" name="serviceTimes" class="easyui-validatebox" required="true"/></td>
            </tr>
            <tr>
                <td>账户余额：</td>
                <td><input type="text" id="balance" name="balance" class="easyui-validatebox" required="true"/></td>
            	 <td>归属地：</td>
                <td><input type="text" id="honeLocation" name="honeLocation" class="easyui-validatebox" required="true"/></td>
            
            </tr>
             
             <tr>
                <td>阿姨评分：</td>
                <td><input type="text" id="score" name="score" class="easyui-validatebox" required="true"/></td>
            	 <td>未读通知数：</td>
                <td><input type="text" id="notified" name="notified" class="easyui-validatebox" required="true"/></td>
            
            </tr> 
            <tr>
                <td>密码：</td>
                <td><input type="text" id="pwd" name="pwd" class="easyui-validatebox" required="true"/></td>
            	
            	  <td>上班状态：</td>
            	 <td>
               <select class="easyui-combobox" id="stage" name="stage" style="width: 175px" class="easyui-validatebox" required="true" >
                        <option value="上班中">上班中</option>
                        <option value="下班中">下班中</option>
                    </select>
                    
                   
                </td>
            </tr>
            <tr>
                <td>服务类型：</td>
                <td>  <textarea rows="4" cols="30"  id="serviceType" name="serviceType" class="easyui-validatebox" required="true"></textarea></td>
            	
            	
            </tr>
             <tr>
            	<td>所有订单：</td>
                <td> <ol id="boxlxc"  name="boxlxc"></ol> </td>
            	
            	
            </tr>
        </table>
    </form>
</div>

<div id="dlg-buttons">
    <a href="javascript:saveSaleChance()" class="easyui-linkbutton" iconCls="icon-ok">保存</a>
    <a href="javascript:closeSaleChanceDialog()" class="easyui-linkbutton" iconCls="icon-cancel">关闭</a>
</div>
</body>
</html>